#ifndef UDPWORKER_H
#define UDPWORKER_H

#include <QObject>
#include <QUdpSocket>
#include <QHostAddress>

class UDPWorker : public QObject
{
    Q_OBJECT
public:
    explicit UDPWorker(QObject *parent = nullptr);

signals:
    void sig_handleData(QList<bool> bList);

    void sig_closeExe();

    void sig_setReSize(int width,int height);

    void sig_DialogShowTxData(QString TxData);

public slots:
    void slot_sendData(QList<bool> bList);
    void processPendingDatagrams();


private:
    QUdpSocket* udpSocket;
    QHostAddress* desAddress;
    quint16 Port = 9000; // 目标端口

};

#endif // UDPWORKER_H
